<?php

namespace Part14_ObserverMode\Code2;

class NBAObserver extends Observer
{
    // 看NBA的同事名称
    protected $name;
    // 绑定监听的前台
    protected $sub;

    public function update()
    {
        echo "{$this->sub->getAction()} $this->name 关闭NBA直播，继续工作\n";

    }
}